﻿using System.Collections.Generic;
using Avalonia.Controls;
using LiveHub.DataModels;

namespace LiveHub.AvaloniaApp.Dialogs;

public partial class UsersDialog : UserControl
{
    public UsersDialog(IEnumerable<UserModel> users)
    {
        InitializeComponent();
        ListBox = this.FindControl<ListBox>("ListBox");
        ListBox!.ItemsSource = users;
    }
}